package com.sjc.algorithm.leetcode;

/**
 * @author by SangJiacun
 * @Date 2020/5/15 00:00
 */
public class I58 {
    public static void main(String[] args) {
        System.out.println(reverseLeftWords("abcdefg",2));
    }
    public static String reverseLeftWords(String s, int n) {
        return s.substring(n,s.length())+s.substring(0,n);
    }
}
